package cn.czh.inventory.service.impl;

import cn.czh.inventory.dao.repository.IPurchaseRepository;
import cn.czh.inventory.pojo.param.PurchaseOrdersParam;
import cn.czh.inventory.service.IPurchaseService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.UUID;

@Slf4j
@Service
@Transactional
public class PurchaseServiceImpl implements IPurchaseService {
    @Autowired
    private IPurchaseRepository purchaseRepository;

    @Override
    public void addPurchaseOrder(PurchaseOrdersParam purchaseOrdersParam) {
        purchaseOrdersParam.setPurchaseId(UUID.randomUUID().toString());

    }

}
